package com.avic.modules.record.rest;

import com.avic.modules.record.service.YesterdayService;
import org.springframework.stereotype.Component;

@Component
public class AlarmRecordTask {
    private final YesterdayService yesterdayService;

    public AlarmRecordTask(YesterdayService yesterdayService) {
        this.yesterdayService = yesterdayService;
    }

    public void runAlarmRecord() {
        yesterdayService.addMonthlyStatusRecord();
    }
}
